# -*- coding: utf-8 -*-
# (c) 2015 Mikel Arregi - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import api, fields, models

import odoo.addons.decimal_precision as dp


class stock_move(models.Model):
    _inherit = 'stock.move'
 
    
    product_qty = fields.Float(
        'Real Quantity', compute='_compute_product_qty', inverse='_set_product_qty',
         digits=dp.get_precision('Product Unit of Measure'), store=True,
        help='Quantity in the default UoM of the product')




class stock_quant(models.Model):
    _inherit = 'stock.quant'

    qty = fields.Float(
        'Quantity', digits=dp.get_precision('Product Unit of Measure'),
        index=True, readonly=True, required=True,
        help="Quantity of products in this quant, in the default unit of measure of the product")




class stock_move_lots(models.Model):
    _inherit = 'stock.move.lots'

    quantity = fields.Float('To Do', default=1.0, digits=dp.get_precision('Product Unit of Measure'))
    quantity_done = fields.Float('Done', default=1.0, digits=dp.get_precision('Product Unit of Measure'))




